package com.sandy.gorm7

import grails.gorm.annotation.Entity
import org.hibernate.annotations.GenericGenerator


@Entity
class Person {

    String firstName
//    Address address
    static hasMany = [addresses: Address]

    static mapping = {
        table 'people'
        firstName column: 'First_Name'
//        address column: 'Person_Address_Id'
        addresses column: 'Person_Address_Id'
    }
}
